home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8647 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: cedarnet.cedarville.edu!usenet
  2. From: Tim Hansell <hansellt@cedarville.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can C++ run DOS .exe files?
  5. Date: Tue, 05 Mar 1996 13:17:18 -0800
  6. Organization: Cedarville College
  7. Message-ID: <313CAF5E.5207@cedarville.edu>
  8. References: <Pine.SUN.3.91.960302145426.22358A-100000-100000-100000-100000@wally.uofport.edu>
  9. NNTP-Posting-Host: hansellt2.cedarville.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Paul George wrote:
  16. > I'm involved in a project which requires C++ to call a DOS executable
  17. > file, and then return back to the C++ program upon finishing?
  18. > I have looked in several C and C++ books, but I have yet been able to
  19. > find an answer to this question.  At the very least,
  20. > I would like to find
  21. > a C/C++ program which can shell to DOS?
  22.  
  23. It's not a question of C++ having the facility to "shell" to DOS, but
  24. rather does the compiler you are using supply a library call which
  25. can call the DOS function which starts a program and then waits until it
  26. is finished.
  27.  
  28. I would say, you could probably write a C++ callable assembly routine
  29. to do what you wanted, but it all depends upone the compiler you are
  30. using.
  31.  
  32. -tim
  33.